<ui:composition xmlns="http://www.w3.org/1999/xhtml" 
	xmlns:ui="http://java.sun.com/jsf/facelets" 
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:app="http://springfuse.jaxio.com/app">
	<app:outputLabel for="#{id}" value="#{label}" required="#{required}" rendered="#{(empty rendered or rendered)}" />
	<p:selectOneMenu id="#{id}" value="#{value}" label="#{resourcesUtil.getProperty(label)}" rendered="#{(empty rendered or rendered) and not readonly}" disabled="#{empty disabled ? false : disabled}"
		layout="#{items.list.size() lt 4 ? 'lineDirection' : 'pageDirection'}">
		<f:selectItems value="#{values}" />
		<f:validateBean binding="#{lenientBeanValidator}" />
		<ui:insert/>
	</p:selectOneMenu>
	<h:outputText value="#{value}" rendered="#{readonly}" />
</ui:composition>
